package spring.pojo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("f")
public class Father {
    String name="朱晓萌";
    @Autowired
    Son son;
    public void meat(){
        System.out.println(name+"吃肉");
    }

    @Override
    public String toString() {
        return son+"是"+name+"的好儿子";
    }
}
